feat(governance): Added success_value to ProposalData (and ProposalInfo).#9789
Open
daniel-wong-dfinity-org wants to merge 7 commits intomasterfrom
Open
feat(governance): Added success_value to ProposalData (and ProposalInfo).#9789daniel-wong-dfinity-org wants to merge 7 commits intomasterfrom
daniel-wong-dfinity-org wants to merge 7 commits intomasterfrom
Conversation
Base automatically changed from
new-create-canister-proposal-type-daniel-wong
to
master
April 9, 2026 13:19
0286456 to
0e924d3
Compare
a1a43a1 to
a90fe92
Compare
a5ad713 to
da676ff
Compare
- Behind flag.
- Messaged clients on Slack.
- Changed Proposal (add new Action). Existing proposals are fine.
- Asking...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The immediate use case for this is creating a canister (in another subnet). See "References". We'll want to know the ID of the created canister. This allows us to link to that datum from the proposal. Having this info will also facilitate testing this new proposal type.
In the not too distant future, this will also be used when taking a snapshot of an NNS-controlled canister.
Minor Associated Changes
Internally, added
next to existing
CallCanistertrait. Also, addedThis way,
perform_call_canisterknows how to decode the reply, instead of just throwing it away (it used to just throw the reply away).perform_call_canisternow also records the status of the proposal execution by callingset_proposal_execution_status. As a result, the body of all existing perform_whatever methods have been reduced to a single line:set_proposal_execution_statusnow takesResult<Vec<u8>, ...>instead of justResult<(), ...>. Actually,perform_call_canisterdoesn't directly decode the reply; it really happens here, inset_proposal_execution_status.Existing callers of
set_proposal_execution_statusare mechanically updated fromto
Moved
humanize_blobto aic-nervous-system-string.References
👈 Previous PR